File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes problem uploading images from android device Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "problem uploading images from android device" Watch "problem uploading images from android device" New topic
Author

problem uploading images from android device

Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 204
hi..i am trying to upload some images from android mobile device....few images are sucessfuly uploaded while some are not getting uploaded...
when i pushed those unsent images to AVD...the images get uploaded succesfuly...what might be the problem???

i have no clue.
any idea would be appreciated

Swastik Dey
Ranch Hand

Joined: Jan 08, 2009
Posts: 1195

By uploading do you mean, you are uploading it to any server?


Swastik
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 204
yes...i am not getting whether it is some size issue...dont know....but through the same code iam able to upload image from AVD

HELP NEEDED
Swastik Dey
Ranch Hand

Joined: Jan 08, 2009
Posts: 1195

Could we have a look on your code?
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 204

image here is the byte[] iam sending
Swastik Dey
Ranch Hand

Joined: Jan 08, 2009
Posts: 1195

Nothing looks wrong in the reading part, do you get any exception for unsent images? Try to write the steps into log, may be that helps.
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 204
from mobile it gives datatruncation exception....from avd it gets uploaded sucessfully
thomas brian
Greenhorn

Joined: Apr 19, 2012
Posts: 16
I don't do facebook, but photobucket is working fine on my mopho. Have upload status bar. Try a reboot....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem uploading images from android device
 
Similar Threads
Best packaging strategy for 'image apps'
Socket communication
program to send sms from android device to a server
how to transfer images to ftp server in android