Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how do i access files residing in gallery

 
chethan kumar venky
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am developing a mms application.so i want to add some images stored in the gallery.
how do i acccess that file.......?
i tried using system.getproperty but i couldn't.........

can anyone please help me out in this..?
 
Gopinath Karyadath
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import javax.microedition.io* ;

filepath= file:///localhost/foldername/filename

fc = (FileConnection) Connector.open(filepath, Connector.READ);
is = fc.openInputStream();



you can easily get the root ..

Enumeration drives = FileSystemRegistry.listRoots();

while (drives.hasMoreElements()) {
System.out.println( (String) drives.nextElement() ) ;
}







Regards
Gopinath -

for more details please contact me
gopi@c2info.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic