You Are Here:

Community: Developer Discussion Boards

#1 Old I can't save images using JSR75 - 2006-11-20, 11:30

Join Date: May 2006
Posts: 11
Sory
Offline
Registered User
I have taken a photo with the camera mobile and I want to save this photo using fileConnection API.
I am not getting any error message but once i say save I am not able to find any images in my mobile's native folder.I'm using a MIDP S60 Emulator. I add permisions javax.microedition.io.Connector.file.read, javaxmicroedition.io.Connector.file.write using Carbide.j, and I sign the midlet, but I am not able to fin any images in : C:\Nokia\Devices\Nokia_PROTOTYPE_SDK_4_0....................\Storage\0\C\NokiA\Images\Pictures. When I run the application I use the trusted 3rd party. But don't save any image. Can someone help me?

My code is:

try {
FileConnection fconn = (FileConnection)Connector.open
("file:///C:/Nokia/Images/Pictures/"+fileName+".png",Connector.WRITE);

if (!fconn.exists())
{
fconn.create();
DataOutputStream dos=fconn.openDataOutputStream();
dos.write(fileData,0,fileData.length);
dos.flush();
dos.close();
}

else
{
Alert al=new Alert("Duplicate File Name");
al.setString("Image with this name already exists");
Display.getDisplay(midlet).setCurrent(al);
}

fconn.close();

}

catch (IOException e)
{

e.printStackTrace();
}


In security_config.xml : Within the <function name="Read User Data Access"> tag and the <function name="Write User Data Access"> tag I will find a setting that says "untrusted mode=0". I Change it to "untrusted mode=4".
PLEASE SEND ME A REPLY AS SOON AS POSSIBLE.




Thanks
Reply With Quote

#2 Old Re: I can't save images using JSR75 - 2006-11-20, 18:53

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Please check this document for guidance
http://www.forum.nokia.com/info/sw.n..._0_en.zip.html

Hartti
Reply With Quote

#3 Old Re: I can't save images using JSR75 - 2006-11-21, 19:12

Join Date: May 2006
Posts: 11
Sory
Offline
Registered User
I ran the sample ImageViewer, but this sample only shows .png images, don't show .jpg images. why?.
Is correct my source code for saving images? When I execute my code I choose the option "trusted third-party" with ASk first time in Read User Data Access and Write User Data Acess in the S60Emulator, but I can´t saving images, help me please!! Must I sign the midlet?
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access series 40 General number via JSR75 mottsc Mobile Java General 16 2009-02-27 12:28
How to save images in the mobile(using JSR-75)? panwoo Mobile Java General 14 2008-07-24 07:19
What is the error in my code here? Unable to Save document to file yuva69 General Symbian C++ 1 2005-05-26 15:22
Save images to phone adneimocne Mobile Java Media (Graphics & Sounds) 1 2004-05-31 15:52
Can J2ME access the images that save on the device binhtt Mobile Java General 1 2004-03-09 22:00

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ