473,471 Members | 2,175 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Insert value in array of bytes

kirubagari
158 New Member
Expand|Select|Wrap|Line Numbers
  1. 04 FF 79 04 3B 04 04 FF -7A 04 3B 04 04 FF 7B 04
  2. 3B 04 04 FF 7C 04 3B 04 -04 FF 7D 04 3B 04 04 FF
  3. 7E 04 3B 04 7F 04 3B 04 -04 FF 80 04 3B 04 04 FF
  4. 81 04 3B 04 04 FF 82 04 -3B 04 04 FF 83 04 3B 04
The data is missing between 04 7F.If i want insert 04 FF between 04 7F.how i can make it?
I want to check from byte 49 to mfilesize.Here i would like to do insertion.After every 5 value the trend is 04 FF.But the data is missing over there.


I want to make the thing look like this


Expand|Select|Wrap|Line Numbers
  1. 04 FF 79 04 3B 04 04 FF -7A 04 3B 04 04 FF 7B 04----line 1
  2. 3B 04 04 FF 7C 04 3B 04 -04 FF 7D 04 3B 04 04 FF-----line2
  3. 7E 04 3B 04 04 FF 7F 04 -3B 04 04 FF 80 04 3B 04---------line 3 
  4. 04 FF 81 04 3B 04 04 FF -82 04 3B 04 04 FF 83 04 ----------line 4
u can see line 3 i add 04 FF between 04 7F.how i can do it using vb?
Jul 31 '07 #1
16 2027
Killer42
8,435 Recognized Expert Expert
First, please use a message title which reflects the actual question you are asking. When people are looking through the list for questions that they may be able to answer, or would also like to know about, "Help Me On This" is not going to attract any attention. You are just shooting yourself in the foot, and making the forum less useful for the rest of us.

Anyway...

Here's a function I've just written (have not tested it, so use it at your own risk) to insert a new byte value into an existing byte array at the specified position. It should be some help in this case...
Expand|Select|Wrap|Line Numbers
  1. Public Function InsertByte(pmArray() As Byte, pmPosition As Long, ByVal pmNewValue As Byte)
  2.   ' Function to insert a new byte value into a byte array.
  3.  
  4.   Dim ArrayStart As Long, ArrayEnd As Long
  5.   Dim I As Long
  6.   ArrayStart = LBound(pmArray)
  7.   ArrayEnd = UBound(pmArray) + 1
  8.   ' Expand array to make room for the new value.
  9.   ReDim Preserve pmArray(ArrayStart To ArrayEnd)
  10.  
  11.   ' If requested position is outside the array, just stick it
  12.   ' at the start or end as appropriate.
  13.   If pmPosition < ArrayStart Then
  14.     pmPosition = ArrayStart
  15.   End If
  16.   If pmPosition > ArrayEnd Then
  17.     pmPosition = ArrayEnd
  18.   End If
  19.  
  20.   ' Unless adding to the end of the array,
  21.   ' push everything across to make room.
  22.   If pmPosition < ArrayEnd Then
  23.     For I = ArrayEnd To pmPosition + 1 Step -1
  24.       pmArray(I) = pmArray(I - 1)
  25.     Next
  26.   End If
  27.   pmArray(pmPosition) = pmNewValue
  28. End Function
Jul 31 '07 #2
kirubagari
158 New Member
Thanks Killer42.its Realy Helpful
Jul 31 '07 #3
kirubagari
158 New Member
Expand|Select|Wrap|Line Numbers
  1. Public Function InsertByte(pmArray() As Byte, pmPosition As Long, ByVal pmNewValue As Byte)
  2. ' Function to insert a new byte value into a byte array.
  3. Dim ArrayStart As Long, ArrayEnd As Long
  4. ArrayStart = LBound(pmArray)
  5. ArrayEnd = UBound(pmArray) + 1
  6. ' Expand array to make room for the new value.
  7. ReDim Preserve pmArray(ArrayStart To ArrayEnd)
  8. ' If requested position is outside the array, just stick it
  9. ' at the start or end as appropriate.
  10. If pmPosition < ArrayStart Then
  11. pmPosition = ArrayStart
  12. End If
  13. If pmPosition > ArrayEnd Then
  14. pmPosition = ArrayEnd
  15. End If
  16. ' Unless adding to the end of the array,
  17. ' push everything across to make room.
  18. If pmPosition < ArrayEnd Then
  19. For I = ArrayEnd To pmPosition + 1 Step -1
  20. pmArray(I) = pmArray(I - 1)
  21. Next
  22. Next
  23. pmArray(pmPosition) = pmNewValue
  24. End Function
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. Private command 1 _click ()
  33. Const a As Byte = 4
  34. Const b As Byte = &HFF
  35. Dim I As Long
  36. Dim AnyChanged As Boolean
  37.  
  38.  
  39. For I = 49 To mFileSize - 6 Step 6
  40. changeMade = False
  41.  
  42. Debug.Print "Before : "; HexByte2Char(arrByte(I)); " "; HexByte2Char(arrByte(I + 1)); " "; HexByte2Char(arrByte(I + 2)); _
  43. " "; HexByte2Char(arrByte(I + 3)); " "; HexByte2Char(arrByte(I + 4)); " "; HexByte2Char(arrByte(I + 5)) " "
  44.  
  45.  
  46. If arrByte(I) <> a Then
  47. arrByte(I) = a
  48. changeMade = True
  49. End If
  50. If arrByte(I + 1) <> b Then
  51. arrByte(I + 1) = b
  52. changeMade = True
  53. End If
  54.  
  55.  
  56. If changeMade Then
  57. AnyChanged = True
  58. If changeMade Then
  59. AnyChanged = True
  60. Debug.Print "After : "; HexByte2Char(arrByte(I)); " "; HexByte2Char(arrByte(I + 1)); " "; HexByte2Char(arrByte(I + 2)); _
  61. " "; HexByte2Char(arrByte(I + 3)); " "; HexByte2Char(arrByte(I + 4)); " "; HexByte2Char(arrByte(I+5)); " "
  62.  
  63. End If
  64. Debug.Print
  65. Next


How i can use the above function to call the insert byte function?Here i just wana insert do wana replace .No idea .Can u explain how i can do this?
Jul 31 '07 #4
Killer42
8,435 Recognized Expert Expert
It goes at the point in your logic where you have decided you want to insert something into your array.

By the way, I see you have another post asking how to delete something out of a byte array. I'd suggest you pick apart the insert routine I wrote, and modify it to work as a delete. This should be quite simple, really.
Jul 31 '07 #5
kirubagari
158 New Member
Public Function InsertByte(pmArray() As Byte, pmPosition As Long, ByVal pmNewValue As Byte)
' Function to insert a new byte value into a byte array.
Dim ArrayStart As Long, ArrayEnd As Long
Dim I As Long
ArrayStart = LBound(pmArray)
ArrayEnd = UBound(pmArray) + 1
' Expand array to make room for the new value.
ReDim Preserve pmArray(ArrayStart To ArrayEnd)
' If requested position is outside the array, just stick it
' at the start or end as appropriate.
If pmPosition < ArrayStart Then
pmPosition = ArrayStart
End If
If pmPosition > ArrayEnd Then
pmPosition = ArrayEnd
End If
' Unless adding to the end of the array,
' push everything across to make room.
If pmPosition < ArrayEnd Then
For I = ArrayEnd To pmPosition + 1 Step -1
pmArray(I) = pmArray(I - 1)
Next
End If
pmArray(pmPosition) = pmNewValue
End Function

please explain what this coding doing?i cant undersatand what actualy this coding is doing
Aug 3 '07 #6
Killer42
8,435 Recognized Expert Expert
Ok, my code had a couple of little bugs, which I've now corrected (I highlighted the corrections in your message).

All it does is take an array of bytes, and insert another one at the requested position.

Here's a sample program which should help to illustrate it. It creates a byte array, places the word "Hello" in it (ASCII values of the letters), then calls that Sub to insert an "A" in the third position. It displays the size and contents of the array, before and after.

To run this, just create a new project, add a module, set the startup object to Sub Main, add a copy of the original InsertByte routine, and paste in this code...
Expand|Select|Wrap|Line Numbers
  1. Public Sub Main()
  2.  
  3.   Dim b() As Byte
  4.  
  5.   ReDim b(1 To 5)
  6.   b(1) = 72   ' ASCII code for "H"
  7.   b(2) = 101 ' ASCII code for "e"
  8.   b(3) = 108 ' ASCII code for "l"
  9.   b(4) = 108 ' ASCII code for "l"
  10.   b(5) = 111 ' ASCII code for "o"
  11.   ShowArrayContents b
  12.   InsertByte b, 3, 65 ' Insert ASCII code for "A" at position 3.
  13.   ShowArrayContents b
  14.  
  15. End Sub
  16.  
  17.  
  18. Private Sub ShowArrayContents(ByteArray() As Byte)
  19.  
  20.   Dim L As Long, U As Long ' Lower/Upper bounds of the array
  21.   Dim S As Long ' S = Size of array (total number of elements)
  22.   Dim I As Long  ' Loop counter.
  23.  
  24.   L = LBound(ByteArray)
  25.   U = UBound(ByteArray)
  26.   S = U - L + 1
  27.  
  28.   Debug.Print "["; Format(S); "]";
  29.   For I = L To U
  30.     Debug.Print Chr$(ByteArray(I));
  31.   Next
  32.   Debug.Print
  33.  
  34. End Sub
If you want to know what the InsertByte routine does in more detail, just follow it through, statement by statement. But you don't actually need to understand it in order to use it. You can treat it as what's generally referred to as a "black box". It's just a box that takes some input and produces some output - you don't actually need to know what's inside the box.
Aug 3 '07 #7
kirubagari
158 New Member
Expand|Select|Wrap|Line Numbers
  1. Option Explicit
  2. Public Sub Main()
  3.  
  4.   Dim b() As Byte
  5.   ReDim b(1 To 10)
  6.   b(1) = 72   ' ASCII code for "H"
  7.   b(2) = 101 ' ASCII code for "e"
  8.   b(3) = 108 ' ASCII code for "l"
  9.   b(4) = 108 ' ASCII code for "l"
  10.   b(5) = 111 ' ASCII code for "o"
  11.   b(6) = 112
  12.   b(7) = 113
  13.   b(8) = 115
  14.   b(9) = 116
  15.   b(10) = 117
  16.   ShowArrayContents b
  17.   InsertByte b, 11, 65 ' Insert ASCII code for "A" at position 3.
  18.   ShowArrayContents b
  19.  
  20. End Sub
  21.  
  22.  
  23. Private Sub ShowArrayContents(ByteArray() As Byte)
  24.  
  25.   Dim L As Long, U As Long ' Lower/Upper bounds of the array
  26.   Dim S As Long ' S = Size of array (total number of elements)
  27.   Dim I As Long  ' Loop counter.
  28.   L = LBound(ByteArray)
  29.   U = UBound(ByteArray)
  30.   S = U - L + 1
  31.   Debug.Print "["; Format(S); "]";
  32.   For I = L To U
  33.     Debug.Print Chr$(ByteArray(I));
  34.   Next
  35.   Debug.Print
  36.  
  37. End Sub
  38.  
  39. Public Function InsertByte(pmArray() As Byte, pmPosition As Long, ByVal pmNewValue As Byte)
  40.   ' Function to insert a new byte value into a byte array.
  41.   Dim ArrayStart As Long, ArrayEnd As Long
  42.   Dim I As Long
  43.   ArrayStart = LBound(pmArray)
  44.   ArrayEnd = UBound(pmArray) + 1
  45.   ' Expand array to make room for the new value.
  46.   ReDim Preserve pmArray(ArrayStart To ArrayEnd)
  47.   ' If requested position is outside the array, just stick it
  48.   ' at the start or end as appropriate.
  49.   If pmPosition < ArrayStart Then
  50.     pmPosition = ArrayStart
  51.   End If
  52.   If pmPosition > ArrayEnd Then
  53.     pmPosition = ArrayEnd
  54.   End If
  55.   ' Unless adding to the end of the array,
  56.   ' push everything across to make room.
  57.   If pmPosition < ArrayEnd Then
  58.     For I = ArrayEnd To pmPosition + 1 Step -1
  59.       pmArray(I) = pmArray(I - 1)
  60.     Next
  61.   End If
  62.   pmArray(pmPosition) = pmNewValue
  63. End Function
I can understand now what the function is doing.This function already specify that insertion will happen in the 3rd place.How if we dont no the insertion will be happen at which place.We ourself finding the correct place to do insertion.This function only read until byte 10.How if i wana read until eof and figure out the place to do insertion.Let say for eg
04 FF 79 04 3B 04 04 FF- 7A 04 3B 04 04 FF 7B 04
3B 04 04 FF 7C 04 3B 04- 04 FF 7D 04 3B 04 04 FF
7E 04 3B 04 7F 04 3B 04 - 04 FF 80 04 3B 04 04 FF

Here 04 FF is missing betwen 04 7F and I would like to insert the 04 FF values and i do no how to maniplate the eg coding that you give
Aug 7 '07 #8
Killer42
8,435 Recognized Expert Expert
Sorry, but I think you need to work out for yourself the logic of what you want to do. Then we can help with the coding. If you can explain in enough detail where you need to insert these bytesm then the code will more or less take care of itself.

The point of that InsertByte routine is to make the process easier. Once you work out where you want to insert a byte, you can just call that routine to do it.

P.S. When posting source code, please use CODE tags as outlined in the Posting Guidelines.
Aug 7 '07 #9
kirubagari
158 New Member
Expand|Select|Wrap|Line Numbers
  1.  
  2. Public Function InsertByte(pmArray() As Byte, pmPosition As Long, ByVal pmNewValue As Byte)
  3. ' Function to insert a new byte value into a byte array.
  4. Dim ArrayStart As Long, ArrayEnd As Long
  5. Dim I As Long
  6. ArrayStart = LBound(pmArray)
  7. ArrayEnd = UBound(pmArray) + 1
  8. ' Expand array to make room for the new value.
  9. ReDim Preserve pmArray(ArrayStart To ArrayEnd)
  10. ' If requested position is outside the array, just stick it
  11. ' at the start or end as appropriate.
  12. If pmPosition < ArrayStart Then
  13.   pmPosition = ArrayStart
  14. End If
  15. If pmPosition > ArrayEnd Then
  16.   pmPosition = ArrayEnd
  17. End If
  18. ' Unless adding to the end of the array,
  19. ' push everything across to make room.
  20. If pmPosition < ArrayEnd Then
  21.   For I = ArrayEnd To pmPosition + 1 Step -1
  22.     pmArray(I) = pmArray(I - 1)
  23.   Next
  24. End If
  25. pmArray(pmPosition) = pmNewValue
  26. End Function
  27.  
  28.  
  29.  
  30. Const a As Byte = 4
  31. Const b As Byte = &HFF
  32. Dim I As Long
  33. Dim AnyChanged As Boolean
  34. Dim changeMade As Boolean
  35.  
  36. For I = 49 To mfilesize - 6 Step 6
  37.   AnyChanged = False
  38.   Debug.Print "Before : "; HexByte2Char(arrByte(I)); " "; HexByte2Char(arrByte(I + 1)); " "; HexByte2Char(arrByte(I + 2)); _
  39. " "; HexByte2Char(arrByte(I + 3)); " "; HexByte2Char(arrByte(I + 4)); " "; HexByte2Char(arrByte(I + 5))
  40.  
  41.  
  42.   If arrByte(I) <> a Then
  43.     insert mfilesize, 6, a step 6
  44.     changeMade = True
  45.   End If
  46.   If arrByte(I + 1) <> b Then
  47.     insert mfilesize , 7, b step 7
  48.     changeMade = True
  49.   End If
  50.   If changeMade Then
  51.     AnyChanged = True
  52.     Debug.Print "After : "; HexByte2Char(arrByte(I)); " "; HexByte2Char(arrByte(I + 1)); " "; HexByte2Char(arrByte(I + 2)); _
  53. " "; HexByte2Char(arrByte(I + 3)); " "; HexByte2Char(arrByte(I + 4)); " "; HexByte2Char(arrByte(I + 5)); _
  54. ""
  55.   End If
  56.   Debug.Print
  57.  



is it correct way.im using the insert function.So am i using it correctly?
Aug 8 '07 #10
Killer42
8,435 Recognized Expert Expert
I would say you're probably getting quite close to what you want.

But lines 42 and 46 look wrong. I assume they are intended to call the InsertByte routine, in which case the name and parameters are both wrong. The parameters is accepts are as follows:
  1. The array into which a byte is to be inserted,
  2. The position in the array to insert the new value, and
  3. The value to be inserted.
In the case of line 42 for example, that would be:
Expand|Select|Wrap|Line Numbers
  1. InsertByte arrByte, I, a
A couple of other things to consider...
  • My apologies. I really should have made InsertByte a Sub, rather than a Function, since it doesn't return anything. Probably doesn't matter much, though.
  • If you think about it, each time you call InsertByte, the array will get one byte longer. But your variable mfilesize will still be the same.
    You can add 1 to mfilesize each time, but the For loop will still finish too early.

Hm...

I tell you what. I finally have a little time on my hands, so I'll try a quick rewrite to allow for the expansion of the array. Note, I won't include the InsertByte sub here, as it's just a waste of space. We'll assume you already have it. You should be able to paste this into a new code module in VB, then just copy in the other functions required, like HexByte2Char and InsertByte.

Also, note that I went back through some earlier posts and pulled together info top try and make this the complete "fix an open file" routine. You will probably still need to adjust things a bit. I have not tested this at all.
Expand|Select|Wrap|Line Numbers
  1. Option Explicit
  2.  
  3. Dim arrByte() As Byte
  4. Dim mFileSize As Long
  5. Dim ChangeMade As Boolean
  6.  
  7. Public Sub ReWrite_Open_File(ByVal FileNo As Long)
  8.  
  9.   Const a As Byte = 4
  10.   Const b As Byte = &HFF
  11.   Dim I As Long
  12.   Dim AnyChanged As Boolean
  13.   Dim J As Long
  14.  
  15.   ' This little array will be used to hold the "before" values,
  16.   ' so we can display them.
  17.   Dim HoldByte(1 To 6) As Byte
  18.  
  19.  
  20.   ' PART 1: Read the file into a Byte array
  21.   ' =======================================
  22.  
  23.   mFileSize = LOF(FileNo) ' Determine how large the file is (in bytes).
  24.   ReDim Buffer(1 To mFileSize) ' Set our buffer to that length.
  25.   Get #FileNo, 1, arrByte ' Grab the entire file's data into the array
  26.  
  27.  
  28.   ' PART 2: Scan the array for dropped bytes and insert them
  29.   ' ========================================================
  30.  
  31.   I = 49
  32.   ' Note, not using a FOR loop, as the end-point may shift during processing.
  33.   Do Until I >= mFileSize
  34.     ' Make a copy of this chunk of data, so we can display the
  35.     ' "before" version after changing it.
  36.     For J = 1 To 6
  37.       HoldByte(J) = arrByte(I + J - 1)
  38.     Next
  39.     AnyChanged = False
  40.  
  41.     ' Check for missing bytes and insert.
  42.     If arrByte(I) <> a Then
  43.       InsertByte arrByte, I, a ' Identified a missing byte. Insert it.
  44.       mFileSize = mFileSize + 1 ' Reflect the addition of 1 byte to the array.
  45.       ChangeMade = True
  46.     End If
  47.     If arrByte(I + 1) <> b Then
  48.       InsertByte arrByte, I + 1, b
  49.       mFileSize = mFileSize + 1 ' Reflect the addition of 1 byte to the array.
  50.       ChangeMade = True
  51.     End If
  52.  
  53.     ' If we changed this chunk of data, report the change.
  54.     If ChangeMade Then
  55.       AnyChanged = True
  56.       ' This demonstrates how useful user-defined functions can be...
  57.       ' Note, since we are reporting only the parts actually changed, you might
  58.       ' want to try putting it in a RichTextBox again; the performance should be
  59.       ' somewhat improved. (You could use a plain TextBox, too).
  60.       Debug.Print "Before ("; Format(I, "000000"); ") : "; FormattedByteArray(HoldByte, 1, 6)
  61.       Debug.Print "After  ("; Format(I, "000000"); ") : "; FormattedByteArray(arrayByte, I, I + 5)
  62.       Debug.Print
  63.     End If
  64.  
  65.     I = I + 6
  66.   Loop
  67.  
  68.  
  69.  
  70.   ' PART 3: If data was changed, write it back to the file
  71.   ' ======================================================
  72.  
  73.   If AnyChanged Then
  74.     If MsgBox("Write data back to the file?", vbYesNo) = vbYes Then
  75.       Put #FileNo, 1, arrByte() ' Write the data back to the file.
  76.     End If
  77.   End If
  78. End Sub
  79.  
  80.  
  81. Private Function FormattedByteArray(parmArray() As Byte, Start As Long, Finish As Long) As String
  82.   ' Format bytes [Start] to [Finish] from a byte array, as
  83.   ' two hex digits each with spaces between.
  84.  
  85.   Dim I As Long
  86.   For I = Start To Finish
  87.     ' Add each byte to the string, followed by a space.
  88.     FormattedByteArray = FormattedByteArray & HexByte2Char(parmArray(I)) & " "
  89.   Next
  90.   FormattedByteArray = RTrim(FormattedByteArray) ' Trim off the last space.
  91.  
  92. End Function
  93.  
  94.  
Aug 8 '07 #11
kirubagari
158 New Member
thanks killer42.Thanks alot for ur guidance
Aug 9 '07 #12
kirubagari
158 New Member
can i call the rewrite function like this


Expand|Select|Wrap|Line Numbers
  1.  private command 1( )click 
  2.  
  3. rewrite_open_file
  4.  
  5. end sub
  6.  
why it giving the error the argument isnot optional
Aug 9 '07 #13
Killer42
8,435 Recognized Expert Expert
can i call the rewrite function like this
Expand|Select|Wrap|Line Numbers
  1.  private command 1( )click 
  2.   rewrite_open_file
  3. end sub
  4.  
why it giving the error the argument isnot optional
The error is quite self-explanatory. The rewrite_open_file routine requires an argument, and you didn't supply one. In this particular case, it expects the number of the currently open file.

Hang on, I'll have a go at rewriting it again so you can just call it. Better still, I'll set it up to accept a filename as an argument. So you can say Rewrite_File "A:\aaa.txt" or whatever.

Give me ten minutes...
Aug 9 '07 #14
Killer42
8,435 Recognized Expert Expert
Ok, more like 40 minutes. Anyway, here is my little trial project. I have compiled it, but haven't actually tried it out on any files yet.

Be careful, as it could destroy any file you use it on.
Attached Files
File Type: zip FileFixer.zip (3.4 KB, 80 views)
Aug 9 '07 #15
kirubagari
158 New Member
killer42 ,the insertion part is success.Thanks alot.U are helping me alot.Thank you very much for ur guidance.Thanks alot sir
Aug 9 '07 #16
Killer42
8,435 Recognized Expert Expert
killer42 ,the insertion part is success.Thanks alot.U are helping me alot.Thank you very much for ur guidance.Thanks alot sir
Glad to hear it helped. :)

And perhaps more importantly, I hope you've picked up some programming tips that will help you resolve further problems.
Aug 9 '07 #17

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Jack | last post by:
I have a text file of data in a file (add2db.txt) where the entries are already entered on separate lines in the following form: INSERT INTO `reviews` VALUES("", "Tony's", "Lunch", "Great...
2
by: Niraj | last post by:
Hi, I am trying to do bulk insert of binary data (array of bytes) in an Oracle table. The data type of the table is BLOB. I am using Oracle Objects for OLE (OO4O) in C++. The binary data that I...
9
by: mprocopio | last post by:
Fellow JavaScripters, I am looking for code or implementation ideas for converting an integer variable to a four-byte array. I'm porting some of my code from C#, where I make use of their...
11
by: Chris Fink | last post by:
I have setup an Oracle table which contains a blob field. How do I insert data into this field using C# and ADO.net?
5
by: SSP | last post by:
Dear ASP.NETers, How would I insert multiple rows of data from a web form? Are there any tute's and stuff around. Couldn't find any myself. Thanks in advance. SSP
17
by: minlar | last post by:
Hello,everyone: what the value of the variables in the next programe: { int x=35; char str; strcpy(str,"www.google.com");} what's the value of x and strlen(str)? any help is welcome, and I am...
7
by: james | last post by:
Hi, I am trying to insert a record into a database table, one field of which is a byte array. Using the below: Byte imgArr; .... <code to put image into imgArr>
6
by: Gregor =?UTF-8?B?S292YcSN?= | last post by:
Hi! I'm using JDBC to connect to DB2. I have a binary data (array of bytes) and want to save them. Is it possible to write an INSERT statement to do this: INSERT INTO TABLE (ID, BYTES)...
11
by: venkatagmail | last post by:
I have problem understanding pass by value and pass by reference and want to how how they are or appear in the memory: I had to get my basics right again. I create an array and try all possible...
20
by: Seongsu Lee | last post by:
Hi, I have a dictionary with million keys. Each value in the dictionary has a list with up to thousand integers. Follow is a simple example with 5 keys. dict = {1: , 2: , 900000: , 900001:...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.