Read JPEG file
-
Hi I want to Read the JPEG file in the CFile or CStdioFile format. I used to Write and read ".doc",".xt" file format by CStdioFile file1; file1.m_pStream=fopen("d:/newfile1.doc","a+"); file1.WriteString(L"hai"); file1.Close(); now i want to Read and Write the JPEG formated file.Some of them said read file in Binary format, but i dont know how to read in binary format. Give your suggestion to Read and Writeing of jpeg file format regards shakumar
shakumar
-
Hi I want to Read the JPEG file in the CFile or CStdioFile format. I used to Write and read ".doc",".xt" file format by CStdioFile file1; file1.m_pStream=fopen("d:/newfile1.doc","a+"); file1.WriteString(L"hai"); file1.Close(); now i want to Read and Write the JPEG formated file.Some of them said read file in Binary format, but i dont know how to read in binary format. Give your suggestion to Read and Writeing of jpeg file format regards shakumar
shakumar
-
Hi I want to Read the JPEG file in the CFile or CStdioFile format. I used to Write and read ".doc",".xt" file format by CStdioFile file1; file1.m_pStream=fopen("d:/newfile1.doc","a+"); file1.WriteString(L"hai"); file1.Close(); now i want to Read and Write the JPEG formated file.Some of them said read file in Binary format, but i dont know how to read in binary format. Give your suggestion to Read and Writeing of jpeg file format regards shakumar
shakumar
-
Hi I want to Read the JPEG file in the CFile or CStdioFile format. I used to Write and read ".doc",".xt" file format by CStdioFile file1; file1.m_pStream=fopen("d:/newfile1.doc","a+"); file1.WriteString(L"hai"); file1.Close(); now i want to Read and Write the JPEG formated file.Some of them said read file in Binary format, but i dont know how to read in binary format. Give your suggestion to Read and Writeing of jpeg file format regards shakumar
shakumar
shakumar_22 wrote:
file1.m_pStream=fopen("d:/newfile1.doc","a+");
Why use this? there is an open function for CStdioFile and CFile. file1.Open("d:/newfile1.doc",CFile::modeRead|CFile::modeWrite); There are some other flags also for opening. you can use the same for opening JPEG files. But what you gonne do by reading row JPEG data?
nave [OpenedFileFinder]
-
Hi I want to Read the JPEG file in the CFile or CStdioFile format. I used to Write and read ".doc",".xt" file format by CStdioFile file1; file1.m_pStream=fopen("d:/newfile1.doc","a+"); file1.WriteString(L"hai"); file1.Close(); now i want to Read and Write the JPEG formated file.Some of them said read file in Binary format, but i dont know how to read in binary format. Give your suggestion to Read and Writeing of jpeg file format regards shakumar
shakumar
-
shakumar_22 wrote:
file1.m_pStream=fopen("d:/newfile1.doc","a+");
Why use this? there is an open function for CStdioFile and CFile. file1.Open("d:/newfile1.doc",CFile::modeRead|CFile::modeWrite); There are some other flags also for opening. you can use the same for opening JPEG files. But what you gonne do by reading row JPEG data?
nave [OpenedFileFinder]
I want to send JPEG file through socket and write there in the receiving system as JPEG file. for that purpose only i reading the jpeg file. if any other way also suggest me to transfer the JPEG FILE through Socket from one system to onther
shakumar
-
I want to send JPEG file through socket and write there in the receiving system as JPEG file. for that purpose only i reading the jpeg file. if any other way also suggest me to transfer the JPEG FILE through Socket from one system to onther
shakumar
shakumar_22 wrote:
if any other way also suggest me to transfer the JPEG FILE through Socket from one system to onther
:) Your idea is not bad. you dont have to do any special handling for transfering JPEG file. Follow the same steps you followed for doc and other files.
nave [OpenedFileFinder]
-
Hi I want to Read the JPEG file in the CFile or CStdioFile format. I used to Write and read ".doc",".xt" file format by CStdioFile file1; file1.m_pStream=fopen("d:/newfile1.doc","a+"); file1.WriteString(L"hai"); file1.Close(); now i want to Read and Write the JPEG formated file.Some of them said read file in Binary format, but i dont know how to read in binary format. Give your suggestion to Read and Writeing of jpeg file format regards shakumar
shakumar
shakumar_22 wrote:
Some of them said read file in Binary format, but i dont know how to read in binary format.
See here for the difference between binary and text files. That said, consult MSDN for the distinction between
CFile
andCStdioFile
.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne