You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am trying to use your library to encrypt some csv files.
First I transform the file to a string. Maybe this approach is wrong.
I am doing MultipartFile file to get the file from a Rest request
content = new String(file.getBytes());
then encrypt and store
retrieve and decrypt,
return the file by content.getBytes()
The encryption and decryption work fine!!
However, during this process the csv seems to loose the line breaks and all comes as one line
Do you have any suggestions on how to tackle this problem ??
ps I have checked that just by uploading file, encoding to string, then decode it and return as a file maintains all line breaks, so I figure the encoding must play some role
The text was updated successfully, but these errors were encountered:
thahgr
changed the title
Encrypting a file removes the line breaks
Encrypting a file as a string removes the line breaks
Apr 7, 2022
Hello, I am trying to use your library to encrypt some csv files.
First I transform the file to a string. Maybe this approach is wrong.
MultipartFile file
to get the file from a Rest requestcontent = new String(file.getBytes());
content.getBytes()
The encryption and decryption work fine!!
However, during this process the csv seems to loose the line breaks and all comes as one line
Do you have any suggestions on how to tackle this problem ??
ps I have checked that just by uploading file, encoding to string, then decode it and return as a file maintains all line breaks, so I figure the encoding must play some role
The text was updated successfully, but these errors were encountered: