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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -