Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

MS/Accessand unicode

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ...
i have this application that has a text field(voice) in which you enter the path of the .au file and it will be added in the database, and i also have asearch button that will search for that .au file with the info related to it but i get the unicode of the path(.au file)when i do the search which i don't want .. i want to get the path itself because when i get the unicode i can't play the .au file.(the field in the database that stores the .au files is of type text)..what i mean by unicode is for example when i enter c:\java\flute.au i get 00EEFDCDDFCEE0DDC of the path )
can some one tell me where the error is?
how to correct the error?
please help..

Marilyn added code tags
[ November 15, 2003: Message edited by: Marilyn de Queiroz ]
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I removed the duplicate post.
 
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is also a duplicate of this thread. I closed the other one.
[ November 15, 2003: Message edited by: Marilyn de Queiroz ]
 
Marilyn de Queiroz
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by menwa ms:
i have this application that has a text field(voice) in which you enter the path of the .au file and it will be added in the database


Are you sure that the path is being added into the database? How do you know?
 
menwa ms
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well actually after i enter the path in the text field , i open the database and see in the voice field that something has been added( but i don't see the path ) i get something like blocks which i can't understand ,, but when i search for it in the application i get the hexadecimal of the path..(instead of getting c:\java\flute.au i get 00DDEFDCCEFF00DCCF)...
this is my problem i want the path not the hexadecimal..
 
Marilyn de Queiroz
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You are not getting the path out of the database because you are not putting the path into the database.

You have three lines of code here that are at all related to your problem. Where in these lines are you finding a path of anything?
[ November 16, 2003: Message edited by: Marilyn de Queiroz ]
 
menwa ms
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi again...
i thought that these lines store the path in the datbase and gets them also from the database...
so please can help help me with correcting my code ...
thankxxx alot
 
Marilyn de Queiroz
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest that you would benefit from writing a very small application to explore the java.io.File class and its methods. Then you can easily see which methods return a path to a class, which methods return the file name, which methods return a list of all the files in that subdirectory, etc.

Once you know how to get the path to your *.au file, you will have no problem to insert it into your database.

But I'm not going to just give you a line of code.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic