-
-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending file to crow backend #210
Comments
Do you mind telling me how you got Crow and which version you're using? Thanks. |
Does the resulting file have the same size? I sort of suspect Windows binary/non binary file issue. You could test opening your output file with binary mode flag. |
Sorry for the late response, I was spinning up a windows VM to test, there is definitely something weird going on, Crow seems to be duplicating newlines in the written file.. I'll look into it further Well it seems to only happen on windows, same data with Linux produces fine results |
@epajarre I don't have much experience with windows, the example shows a text file and @mihdim777 is saying the SHA checksum isn't matching.. |
So using something like this:
should fix the issue. |
Hello! Sorry for late response and thank you guys for helping! @The-EDev Thank you very much for investigation. Indeed it was from Windows machine with that CRLF. @epajarre yes, by specifying binary ofstream did the trick and now they have the same SHA and files are reopened perfectly. I'm using the code version from this repo. Do you think it is a good idea to implement in crow a function to handle file opening, writing and closing? Should I create a PR? |
Hello! Also I found this after redownloading this the latest version: Here is exception threw on this code: ` int main()
} And here is the call stack from routing.h |
Thanks for taking note of this problem, it's been fixed in #208 which I just merged |
I'm not sure, |
Thanks for your help @epajarre, I had completely forgotten about I'll close this issue since the problem is fixed. |
Hello!
I am trying to send a file (any extension) to a backend crow server.
I am using this piece of code and somehow files don't have the same SHA hash.
In Visual Studio I have set to C++17 and Character Set to Use Multi-Byte Character Set.
What am I doing wrong?
Thank you!
The text was updated successfully, but these errors were encountered: