Hi Jim,
Could you try something like the following to see if you are able to
upload then view an image -
on mouseUp
--this just makes sure the pic is of a reasonable size to work with
set the width of the templateImage to 250
set the height of the templateImage to 250
set the lockLoc of the templateImage to true
--take the picture
mobilepickphoto "library"
--upload to FTP
put the last image into url
("ftp://username:password@host/newimage.jpg")
--Informs of successful or unsuccessful upload
if the result is not empty then
answer "url put failed:" && the result
else
answer "success!"
end if
end mouseUp
I ask this as I have used the above script previously to successfully to
upload an image that is then viewable when downloaded.
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
--
On 26/08/2013 04:47, Jim sims wrote:
*I'm using the following code in iOS to:*
* select an image from the library*
*reduce it in size as set by the templateimage*
*import snapshot of that image from my card*
*then upload it to my server *
*-- btw WE NEED A SAFER FTP!!!!!*
*
*
*It seems to do all these things but the image that lands on the server
cannot be viewed in Preview when retrieved from the server.*
*
*
*Am doing this via the iOS Simulator which will upload viewable images that
are not from a snapshot but just "the last image" after selecting via
mobilepickphoto "library"
*
*
*
*Any idea why the snapshot image that is uploaded is no good?*
*
*
*on* mouseUp
*set* the width of the templateImage to 80
*set* the height of the templateImage to 30
*set* the lockLoc of the templateImage to true
mobilepickphoto "library"
*put* the rect of the last image into tRect
*import* snapshot from rectangle tRect
*
*
*put* the last image into url ("
ftp://me:passw...@ftp.ezpzapps.com/public_html/1AX.jpg")
*if* the result is not empty *then*
*answer* "url put failed:" && the result
*else*
*answer* "success!"
*end* *if*
*end* mouseUp
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode