Save Image to photo album directory

All,

I am offering my users the ability to purchase wallpapers with in-game currency. I have set up a webservice to return back the wallpaper using network.download, but I am unable to find a way to save the image to the photo album.

The only work around I was able to think up would be to display the image and screencapture the image. This will not be good enough. I am hoping that since capturescreen has access to the photo album directory, there must be a way for our apps to do so as well.

Please let me know if you know of a way.

Regards,
Brian [import]uid: 158289 topic_id: 28220 reply_id: 328220[/import]

I am also interested in this function, especially to be able to save the high res image from camera to photolibrary. Hope they will implement something that will let us save images to photolibrary soon. I think its on the roadmap. [import]uid: 17969 topic_id: 28220 reply_id: 114020[/import]

Hello again,

I am able to get a screenshot of the download image with the code below, but this is not a viable solution. My app is landscape, and the wallpapers are in portrait. So, the image gets squished, and can’t even be used as a wallpaper once it is saved.

I would really appreciate any help. Even if it is just to tell me that I should stop trying and just wait until this functionality is available.

Regards,
Brian

[code]
local function networkListener( event )
if ( event.isError ) then
print ( “Network error - download failed” )
else
local img = display.newImageRect(“wallpaper_tmp.png”, system.TemporaryDirectory, display.contentWidth, display.contentHeight + IpadOffset)
img:setReferencePoint(display.TopLeftReferencePoint)
img.x, img.y = 0,0

–grab the screen, save it to the album, then remove the screen capture and the original image.
local screenCap = display.captureScreen( true )
screenCap:removeSelf()
img:removeSelf()
end

–print ( "RESPONSE: " … event.response )
end
–event.target.id is taken from other code (not shown here)
–Also, xxxxxxxx.php is not the actual web service name.
network.download(
http://velluminteractive.com/xxxxxxxx.php?x=” … event.target.id,
“GET”,
networkListener,
“wallpaper_tmp.png”,
system.TemporaryDirectory )
[/code] [import]uid: 158289 topic_id: 28220 reply_id: 114099[/import]

Hi again,

I have to say that I am not very impressed with the pro developer forum support. Its been almost a week, and nobody is able to answer a simple yes or no question.

I just want to know if it is possible to save an image to the iOS photo album without having to take a screenshot of it.

Regards,
Brian [import]uid: 158289 topic_id: 28220 reply_id: 114471[/import]