java - Save string path in a database -
java mysql database i'm doing project on saving string path name like, "c:\desktop\" database. had create entity class update path name database, in java eclipse when run program display path store in database in format, "c:\desktop\" in database column path store "c: desktop", without '\'
a simple solution replace the "\"
before store in database. try:
string.replace("\","@");
then slashes @
symbols. when read value again, can other way.
Comments
Post a Comment