473,320 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to decrypt a serailized binary formatted object

I encryted a serialized binary formatted object. Now I can't figure out how
to deserialize it so that I can decrypt it.

I used this code encrypt and write it out:
Dim fe As New MortgageFileWriter.FileEncrypt

Dim myBuffer As New IO.MemoryStream

Dim OutBuffer As New IO.MemoryStream

Dim fsBuffer As New StreamWriter(OutBuffer)

fsBuffer.Write(company)

fe.EncryptFile(myBuffer, OutBuffer)

bf.Serialize(dataStream, OutBuffer)

dataStream.Close()

Sub EncryptFile( _

ByVal inBuffer As IO.MemoryStream, _

ByVal outBuffer As IO.MemoryStream)

'Dim fsInput As New FileStream(inFileName, FileMode.Open, FileAccess.Read)

'Dim fsOutput As New FileStream(outFileName, FileMode.Create,
FileAccess.Write)

Dim cdk As New PasswordDeriveBytes( _

"1E1705459E1B3520943FC00CF8E7CEEDA68BF5FAgtGpsCVNk FAo3am992z7kgc=", Nothing)

' generate an RC2 key

Dim iv() As Byte = {0, 0, 0, 0, 0, 0, 0, 0}

Dim key As Byte() = cdk.CryptDeriveKey("RC2", "SHA1", 128, iv)

' setup an RC2 object to encrypt with the derived key

Dim rc2 As New RC2CryptoServiceProvider

rc2.Key = key

rc2.IV = New Byte() {21, 22, 23, 24, 25, 26, 27, 28}

'Read unencrypted file input into the buffer byte array.

Dim byteBuffer(CInt(inBuffer.Length - 1)) As Byte

inBuffer.Read(byteBuffer, 0, byteBuffer.Length)

'Dim byteBuffer(CInt(fsInput.Length) - 1) As Byte

'fsInput.Read(byteBuffer, 0, byteBuffer.Length)

' Create CryptoStream with write access to encrypt filestream using RC2

Dim cs As New CryptoStream(outBuffer, rc2.CreateEncryptor(),
CryptoStreamMode.Write)

' Write CryptoStream bytes from buffer from offset 0 to end of buffer

cs.Write(byteBuffer, 0, byteBuffer.Length)

cs.Flush()

cs.Close()

inBuffer.Close()

'fsOutput.Close()

End Sub

This is the decription procedure

Sub DecryptFile( _

ByVal inBuffer As IO.MemoryStream, _

ByVal outBuffer As IO.MemoryStream)

'Create file stream to read encrypted file.

'Dim fsInput As New FileStream(inBuffer, FileMode.Open, FileAccess.Read)

'Dim fsOutput As New StreamWriter(outFileName)

Dim cdk As New PasswordDeriveBytes( _

"1E1705459E1B3520943FC00CF8E7CEEDA68BF5FAgtGpsCVNk FAo3am992z7kgc=", Nothing)

' generate an RC2 key

Dim iv() As Byte = {0, 0, 0, 0, 0, 0, 0, 0}

Dim key As Byte() = cdk.CryptDeriveKey("RC2", "SHA1", 128, iv)

' setup an RC2 object to encrypt with the derived key

Dim rc2 As New RC2CryptoServiceProvider

rc2.Key = key

rc2.IV = New Byte() {21, 22, 23, 24, 25, 26, 27, 28}

' Create the crypto stream with read access to decrypt incoming bytes using
RC2.

Try

Dim cryptostreamDecr As New CryptoStream(inBuffer, rc2.CreateDecryptor(),
CryptoStreamMode.Read)

Dim fsBuffer As New StreamWriter(outBuffer)

' Write out the decrypted file.

fsBuffer.Write(New StreamReader(cryptostreamDecr).ReadToEnd)

fsBuffer.Flush()

'inBuffer.Close()

'fsBuffer.Close()

Catch ex As Exception

Dim str As String

str = ex.Message

End Try

'fsOutput.Write(New StreamReader(cryptostreamDecr).ReadToEnd)

'fsOutput.Flush()

'fsInput.Close()

'fsOutput.Close()

End Sub
Nov 21 '05 #1
4 1394
Never mind, I still do not have the first part right.
"DazedAndConfused" <Ac********@yahoo.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
I encryted a serialized binary formatted object. Now I can't figure out how
to deserialize it so that I can decrypt it.

I used this code encrypt and write it out:
Dim fe As New MortgageFileWriter.FileEncrypt

Dim myBuffer As New IO.MemoryStream

Dim OutBuffer As New IO.MemoryStream

Dim fsBuffer As New StreamWriter(OutBuffer)

fsBuffer.Write(company)

fe.EncryptFile(myBuffer, OutBuffer)

bf.Serialize(dataStream, OutBuffer)

dataStream.Close()

Sub EncryptFile( _

ByVal inBuffer As IO.MemoryStream, _

ByVal outBuffer As IO.MemoryStream)

'Dim fsInput As New FileStream(inFileName, FileMode.Open, FileAccess.Read)

'Dim fsOutput As New FileStream(outFileName, FileMode.Create,
FileAccess.Write)

Dim cdk As New PasswordDeriveBytes( _

"1E1705459E1B3520943FC00CF8E7CEEDA68BF5FAgtGpsCVNk FAo3am992z7kgc=",
Nothing)

' generate an RC2 key

Dim iv() As Byte = {0, 0, 0, 0, 0, 0, 0, 0}

Dim key As Byte() = cdk.CryptDeriveKey("RC2", "SHA1", 128, iv)

' setup an RC2 object to encrypt with the derived key

Dim rc2 As New RC2CryptoServiceProvider

rc2.Key = key

rc2.IV = New Byte() {21, 22, 23, 24, 25, 26, 27, 28}

'Read unencrypted file input into the buffer byte array.

Dim byteBuffer(CInt(inBuffer.Length - 1)) As Byte

inBuffer.Read(byteBuffer, 0, byteBuffer.Length)

'Dim byteBuffer(CInt(fsInput.Length) - 1) As Byte

'fsInput.Read(byteBuffer, 0, byteBuffer.Length)

' Create CryptoStream with write access to encrypt filestream using RC2

Dim cs As New CryptoStream(outBuffer, rc2.CreateEncryptor(),
CryptoStreamMode.Write)

' Write CryptoStream bytes from buffer from offset 0 to end of buffer

cs.Write(byteBuffer, 0, byteBuffer.Length)

cs.Flush()

cs.Close()

inBuffer.Close()

'fsOutput.Close()

End Sub

This is the decription procedure

Sub DecryptFile( _

ByVal inBuffer As IO.MemoryStream, _

ByVal outBuffer As IO.MemoryStream)

'Create file stream to read encrypted file.

'Dim fsInput As New FileStream(inBuffer, FileMode.Open, FileAccess.Read)

'Dim fsOutput As New StreamWriter(outFileName)

Dim cdk As New PasswordDeriveBytes( _

"1E1705459E1B3520943FC00CF8E7CEEDA68BF5FAgtGpsCVNk FAo3am992z7kgc=",
Nothing)

' generate an RC2 key

Dim iv() As Byte = {0, 0, 0, 0, 0, 0, 0, 0}

Dim key As Byte() = cdk.CryptDeriveKey("RC2", "SHA1", 128, iv)

' setup an RC2 object to encrypt with the derived key

Dim rc2 As New RC2CryptoServiceProvider

rc2.Key = key

rc2.IV = New Byte() {21, 22, 23, 24, 25, 26, 27, 28}

' Create the crypto stream with read access to decrypt incoming bytes
using RC2.

Try

Dim cryptostreamDecr As New CryptoStream(inBuffer, rc2.CreateDecryptor(),
CryptoStreamMode.Read)

Dim fsBuffer As New StreamWriter(outBuffer)

' Write out the decrypted file.

fsBuffer.Write(New StreamReader(cryptostreamDecr).ReadToEnd)

fsBuffer.Flush()

'inBuffer.Close()

'fsBuffer.Close()

Catch ex As Exception

Dim str As String

str = ex.Message

End Try

'fsOutput.Write(New StreamReader(cryptostreamDecr).ReadToEnd)

'fsOutput.Flush()

'fsInput.Close()

'fsOutput.Close()

End Sub

Nov 21 '05 #2
The following is a simple serialization of the Structure "TestSerialize by
serializing one instance of the structure "t" then deserializing it back
into "ot"

Hope this helps.

Public Sut TestingSerialze
Dim t As TestSerialize
Dim ot As TestSerialize
Dim formatter As New BinaryFormatter
Dim s As New MemoryStream
Dim i As Integer
t.i = 125
t.a = "This is a test of Serialilzing a structure"
t.b = New Byte() {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25}
formatter.Serialize(s, t)
' Deserialize
s.Seek(0, SeekOrigin.Begin)
'ot = DirectCast(formatter.Deserialize(s), TestSerialize)
ot = formatter.Deserialize(s)
i = 0
end sub

<Serializable()> Public Structure TestSerialize
Dim i As Integer
Dim a As String
Dim b As Byte()
End Structure
--
Dennis in Houston
"DazedAndConfused" wrote:
Never mind, I still do not have the first part right.
"DazedAndConfused" <Ac********@yahoo.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
I encryted a serialized binary formatted object. Now I can't figure out how
to deserialize it so that I can decrypt it.

I used this code encrypt and write it out:
Dim fe As New MortgageFileWriter.FileEncrypt

Dim myBuffer As New IO.MemoryStream

Dim OutBuffer As New IO.MemoryStream

Dim fsBuffer As New StreamWriter(OutBuffer)

fsBuffer.Write(company)

fe.EncryptFile(myBuffer, OutBuffer)

bf.Serialize(dataStream, OutBuffer)

dataStream.Close()

Sub EncryptFile( _

ByVal inBuffer As IO.MemoryStream, _

ByVal outBuffer As IO.MemoryStream)

'Dim fsInput As New FileStream(inFileName, FileMode.Open, FileAccess.Read)

'Dim fsOutput As New FileStream(outFileName, FileMode.Create,
FileAccess.Write)

Dim cdk As New PasswordDeriveBytes( _

"1E1705459E1B3520943FC00CF8E7CEEDA68BF5FAgtGpsCVNk FAo3am992z7kgc=",
Nothing)

' generate an RC2 key

Dim iv() As Byte = {0, 0, 0, 0, 0, 0, 0, 0}

Dim key As Byte() = cdk.CryptDeriveKey("RC2", "SHA1", 128, iv)

' setup an RC2 object to encrypt with the derived key

Dim rc2 As New RC2CryptoServiceProvider

rc2.Key = key

rc2.IV = New Byte() {21, 22, 23, 24, 25, 26, 27, 28}

'Read unencrypted file input into the buffer byte array.

Dim byteBuffer(CInt(inBuffer.Length - 1)) As Byte

inBuffer.Read(byteBuffer, 0, byteBuffer.Length)

'Dim byteBuffer(CInt(fsInput.Length) - 1) As Byte

'fsInput.Read(byteBuffer, 0, byteBuffer.Length)

' Create CryptoStream with write access to encrypt filestream using RC2

Dim cs As New CryptoStream(outBuffer, rc2.CreateEncryptor(),
CryptoStreamMode.Write)

' Write CryptoStream bytes from buffer from offset 0 to end of buffer

cs.Write(byteBuffer, 0, byteBuffer.Length)

cs.Flush()

cs.Close()

inBuffer.Close()

'fsOutput.Close()

End Sub

This is the decription procedure

Sub DecryptFile( _

ByVal inBuffer As IO.MemoryStream, _

ByVal outBuffer As IO.MemoryStream)

'Create file stream to read encrypted file.

'Dim fsInput As New FileStream(inBuffer, FileMode.Open, FileAccess.Read)

'Dim fsOutput As New StreamWriter(outFileName)

Dim cdk As New PasswordDeriveBytes( _

"1E1705459E1B3520943FC00CF8E7CEEDA68BF5FAgtGpsCVNk FAo3am992z7kgc=",
Nothing)

' generate an RC2 key

Dim iv() As Byte = {0, 0, 0, 0, 0, 0, 0, 0}

Dim key As Byte() = cdk.CryptDeriveKey("RC2", "SHA1", 128, iv)

' setup an RC2 object to encrypt with the derived key

Dim rc2 As New RC2CryptoServiceProvider

rc2.Key = key

rc2.IV = New Byte() {21, 22, 23, 24, 25, 26, 27, 28}

' Create the crypto stream with read access to decrypt incoming bytes
using RC2.

Try

Dim cryptostreamDecr As New CryptoStream(inBuffer, rc2.CreateDecryptor(),
CryptoStreamMode.Read)

Dim fsBuffer As New StreamWriter(outBuffer)

' Write out the decrypted file.

fsBuffer.Write(New StreamReader(cryptostreamDecr).ReadToEnd)

fsBuffer.Flush()

'inBuffer.Close()

'fsBuffer.Close()

Catch ex As Exception

Dim str As String

str = ex.Message

End Try

'fsOutput.Write(New StreamReader(cryptostreamDecr).ReadToEnd)

'fsOutput.Flush()

'fsInput.Close()

'fsOutput.Close()

End Sub


Nov 21 '05 #3
I'll take a closer look, but the serialization has been working, the problem
arises when I attempt to encrypt the object and then try to decrpt it. I'm
not even sure you can do this.
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
The following is a simple serialization of the Structure "TestSerialize by
serializing one instance of the structure "t" then deserializing it back
into "ot"

Hope this helps.

Public Sut TestingSerialze
Dim t As TestSerialize
Dim ot As TestSerialize
Dim formatter As New BinaryFormatter
Dim s As New MemoryStream
Dim i As Integer
t.i = 125
t.a = "This is a test of Serialilzing a structure"
t.b = New Byte() {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25}
formatter.Serialize(s, t)
' Deserialize
s.Seek(0, SeekOrigin.Begin)
'ot = DirectCast(formatter.Deserialize(s), TestSerialize)
ot = formatter.Deserialize(s)
i = 0
end sub

<Serializable()> Public Structure TestSerialize
Dim i As Integer
Dim a As String
Dim b As Byte()
End Structure
--
Dennis in Houston
"DazedAndConfused" wrote:
Never mind, I still do not have the first part right.
"DazedAndConfused" <Ac********@yahoo.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
>I encryted a serialized binary formatted object. Now I can't figure out
>how
>to deserialize it so that I can decrypt it.
>
> I used this code encrypt and write it out:
> Dim fe As New MortgageFileWriter.FileEncrypt
>
> Dim myBuffer As New IO.MemoryStream
>
> Dim OutBuffer As New IO.MemoryStream
>
> Dim fsBuffer As New StreamWriter(OutBuffer)
>
> fsBuffer.Write(company)
>
> fe.EncryptFile(myBuffer, OutBuffer)
>
> bf.Serialize(dataStream, OutBuffer)
>
> dataStream.Close()
>
> Sub EncryptFile( _
>
> ByVal inBuffer As IO.MemoryStream, _
>
> ByVal outBuffer As IO.MemoryStream)
>
> 'Dim fsInput As New FileStream(inFileName, FileMode.Open,
> FileAccess.Read)
>
> 'Dim fsOutput As New FileStream(outFileName, FileMode.Create,
> FileAccess.Write)
>
> Dim cdk As New PasswordDeriveBytes( _
>
> "1E1705459E1B3520943FC00CF8E7CEEDA68BF5FAgtGpsCVNk FAo3am992z7kgc=",
> Nothing)
>
>
>
> ' generate an RC2 key
>
> Dim iv() As Byte = {0, 0, 0, 0, 0, 0, 0, 0}
>
> Dim key As Byte() = cdk.CryptDeriveKey("RC2", "SHA1", 128, iv)
>
> ' setup an RC2 object to encrypt with the derived key
>
> Dim rc2 As New RC2CryptoServiceProvider
>
> rc2.Key = key
>
> rc2.IV = New Byte() {21, 22, 23, 24, 25, 26, 27, 28}
>
> 'Read unencrypted file input into the buffer byte array.
>
> Dim byteBuffer(CInt(inBuffer.Length - 1)) As Byte
>
> inBuffer.Read(byteBuffer, 0, byteBuffer.Length)
>
> 'Dim byteBuffer(CInt(fsInput.Length) - 1) As Byte
>
> 'fsInput.Read(byteBuffer, 0, byteBuffer.Length)
>
> ' Create CryptoStream with write access to encrypt filestream using RC2
>
> Dim cs As New CryptoStream(outBuffer, rc2.CreateEncryptor(),
> CryptoStreamMode.Write)
>
> ' Write CryptoStream bytes from buffer from offset 0 to end of buffer
>
> cs.Write(byteBuffer, 0, byteBuffer.Length)
>
> cs.Flush()
>
> cs.Close()
>
> inBuffer.Close()
>
> 'fsOutput.Close()
>
> End Sub
>
>
>
> This is the decription procedure
>
> Sub DecryptFile( _
>
> ByVal inBuffer As IO.MemoryStream, _
>
> ByVal outBuffer As IO.MemoryStream)
>
> 'Create file stream to read encrypted file.
>
> 'Dim fsInput As New FileStream(inBuffer, FileMode.Open,
> FileAccess.Read)
>
> 'Dim fsOutput As New StreamWriter(outFileName)
>
> Dim cdk As New PasswordDeriveBytes( _
>
> "1E1705459E1B3520943FC00CF8E7CEEDA68BF5FAgtGpsCVNk FAo3am992z7kgc=",
> Nothing)
>
> ' generate an RC2 key
>
> Dim iv() As Byte = {0, 0, 0, 0, 0, 0, 0, 0}
>
> Dim key As Byte() = cdk.CryptDeriveKey("RC2", "SHA1", 128, iv)
>
> ' setup an RC2 object to encrypt with the derived key
>
> Dim rc2 As New RC2CryptoServiceProvider
>
> rc2.Key = key
>
> rc2.IV = New Byte() {21, 22, 23, 24, 25, 26, 27, 28}
>
> ' Create the crypto stream with read access to decrypt incoming bytes
> using RC2.
>
> Try
>
> Dim cryptostreamDecr As New CryptoStream(inBuffer,
> rc2.CreateDecryptor(),
> CryptoStreamMode.Read)
>
> Dim fsBuffer As New StreamWriter(outBuffer)
>
> ' Write out the decrypted file.
>
> fsBuffer.Write(New StreamReader(cryptostreamDecr).ReadToEnd)
>
> fsBuffer.Flush()
>
> 'inBuffer.Close()
>
> 'fsBuffer.Close()
>
> Catch ex As Exception
>
> Dim str As String
>
> str = ex.Message
>
> End Try
>
>
>
>
>
> 'fsOutput.Write(New StreamReader(cryptostreamDecr).ReadToEnd)
>
> 'fsOutput.Flush()
>
> 'fsInput.Close()
>
> 'fsOutput.Close()
>
> End Sub
>
>


Nov 21 '05 #4
I found the answer to my problem at :
Ivan Medvedev's blog
http://blogs.gotdotnet.com/ivanmed/P...6-5973106935a4

After banging my head for five days the problem was using
CryptoStreamMode.Read in the Decryption. You can use it
(CryptoStreamMode.Read ) for decrypting file and network streams, but
apparently you need to use CryptoStreamMode.Write for Memory.

Although I am still somewhat confused and definitely dazed!

THANK YOU IVAN!!
"DazedAndConfused" <Ac********@yahoo.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
I encryted a serialized binary formatted object. Now I can't figure out how
to deserialize it so that I can decrypt it.

I used this code encrypt and write it out:
Dim fe As New MortgageFileWriter.FileEncrypt

Dim myBuffer As New IO.MemoryStream

Dim OutBuffer As New IO.MemoryStream

Dim fsBuffer As New StreamWriter(OutBuffer)

fsBuffer.Write(company)

fe.EncryptFile(myBuffer, OutBuffer)

bf.Serialize(dataStream, OutBuffer)

dataStream.Close()

Sub EncryptFile( _

ByVal inBuffer As IO.MemoryStream, _

ByVal outBuffer As IO.MemoryStream)

'Dim fsInput As New FileStream(inFileName, FileMode.Open, FileAccess.Read)

'Dim fsOutput As New FileStream(outFileName, FileMode.Create,
FileAccess.Write)

Dim cdk As New PasswordDeriveBytes( _

"1E1705459E1B3520943FC00CF8E7CEEDA68BF5FAgtGpsCVNk FAo3am992z7kgc=",
Nothing)

' generate an RC2 key

Dim iv() As Byte = {0, 0, 0, 0, 0, 0, 0, 0}

Dim key As Byte() = cdk.CryptDeriveKey("RC2", "SHA1", 128, iv)

' setup an RC2 object to encrypt with the derived key

Dim rc2 As New RC2CryptoServiceProvider

rc2.Key = key

rc2.IV = New Byte() {21, 22, 23, 24, 25, 26, 27, 28}

'Read unencrypted file input into the buffer byte array.

Dim byteBuffer(CInt(inBuffer.Length - 1)) As Byte

inBuffer.Read(byteBuffer, 0, byteBuffer.Length)

'Dim byteBuffer(CInt(fsInput.Length) - 1) As Byte

'fsInput.Read(byteBuffer, 0, byteBuffer.Length)

' Create CryptoStream with write access to encrypt filestream using RC2

Dim cs As New CryptoStream(outBuffer, rc2.CreateEncryptor(),
CryptoStreamMode.Write)

' Write CryptoStream bytes from buffer from offset 0 to end of buffer

cs.Write(byteBuffer, 0, byteBuffer.Length)

cs.Flush()

cs.Close()

inBuffer.Close()

'fsOutput.Close()

End Sub

This is the decription procedure

Sub DecryptFile( _

ByVal inBuffer As IO.MemoryStream, _

ByVal outBuffer As IO.MemoryStream)

'Create file stream to read encrypted file.

'Dim fsInput As New FileStream(inBuffer, FileMode.Open, FileAccess.Read)

'Dim fsOutput As New StreamWriter(outFileName)

Dim cdk As New PasswordDeriveBytes( _

"1E1705459E1B3520943FC00CF8E7CEEDA68BF5FAgtGpsCVNk FAo3am992z7kgc=",
Nothing)

' generate an RC2 key

Dim iv() As Byte = {0, 0, 0, 0, 0, 0, 0, 0}

Dim key As Byte() = cdk.CryptDeriveKey("RC2", "SHA1", 128, iv)

' setup an RC2 object to encrypt with the derived key

Dim rc2 As New RC2CryptoServiceProvider

rc2.Key = key

rc2.IV = New Byte() {21, 22, 23, 24, 25, 26, 27, 28}

' Create the crypto stream with read access to decrypt incoming bytes
using RC2.

Try

Dim cryptostreamDecr As New CryptoStream(inBuffer, rc2.CreateDecryptor(),
CryptoStreamMode.Read)

Dim fsBuffer As New StreamWriter(outBuffer)

' Write out the decrypted file.

fsBuffer.Write(New StreamReader(cryptostreamDecr).ReadToEnd)

fsBuffer.Flush()

'inBuffer.Close()

'fsBuffer.Close()

Catch ex As Exception

Dim str As String

str = ex.Message

End Try

'fsOutput.Write(New StreamReader(cryptostreamDecr).ReadToEnd)

'fsOutput.Flush()

'fsInput.Close()

'fsOutput.Close()

End Sub

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

103
by: Steven T. Hatton | last post by:
§27.4.2.1.4 Type ios_base::openmode Says this about the std::ios::binary openmode flag: *binary*: perform input and output in binary mode (as opposed to text mode) And that is basically _all_ it...
7
by: Jean Christophe Avard | last post by:
Hi! I am designing an application wich comes with image file. These images are copyrighted and they have to be accessible only from within the application. At first, I tought I was going to store...
26
by: Patient Guy | last post by:
Has anyone written code that successfully manipulates binary file data using Javascript? It might---and in the case of doing I/O, will---make use of browser- specific functions (ActiveX/COM with...
2
by: Wayne Marsh | last post by:
Hello, Is it considered sane/good practice to write a global operator for the insertion and extraction operators of an fstream in binary mode to serialize a binary class, or are they strictly...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.