Author: wyoung
Date: Tue May 18 19:09:10 2010
New Revision: 2647

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2647&view=rev
Log:
Fixed a bug that prevented load_jpeg from actually loading the JPEG
file.  Was trying to read starting from the end of the file!

Modified:
    trunk/examples/load_jpeg.cpp

Modified: trunk/examples/load_jpeg.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/load_jpeg.cpp?rev=2647&r1=2646&r2=2647&view=diff
==============================================================================
--- trunk/examples/load_jpeg.cpp (original)
+++ trunk/examples/load_jpeg.cpp Tue May 18 19:09:10 2010
@@ -78,7 +78,7 @@
 
        // Got a file's name on the command line, so open it.
        img_name = cmdline.extra_args()[0];
-       ifstream img_file(img_name.c_str(), ios::ate | ios::binary);
+       ifstream img_file(img_name.c_str(), ios::binary);
        if (img_file) {
                // File opened, so try to slurp its contents into RAM.  (See
                // http://stackoverflow.com/questions/116038/) for explanation.)


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to