Search Result

Collapse
7 results in 0.0014 seconds.
Keywords
Members
Tags
bytes
  •  

  • yupsdk
    started a topic Session dont work (PHP)
    in PHP

    Session dont work (PHP)

    Hi Bytes.com

    Have this code, and i want it use session, but when i update after loggedin, it goes to login.php again :S

    Anyone what can see the fail?

    Because im danish then i just translate to english.

    Brugernavn = Username
    Kodeord = Password

    Code:
    <font face="Arial" size="2px" color="black">
    <?php
    include("forbinddb.php");
    ...
    See more | Go to post

  • Lamont J
    started a topic Problem writing a byte to binary file

    Problem writing a byte to binary file

    Code:
    'Reading file Byte-by-Byte
    Dim Rs As Byte = bReader.ReadByte()
    
    'Converting Byte To Integer
    Dim n As Integer = CType(Rs, Integer)
    
    'Function Input Integer    (0-255)
    Function a(byval n as integer) as integer
    'Function Output Integer   (0-255)
    
    'Convert Integer to Byte                
    Rs = CType(n, Byte)
    
    'Write Byte to Stream
    bWriter.Write(Rs)
    ...
    See more | Go to post

  • phpuser123
    started a topic How can I convert a byte array to an object ?
    in Java

    How can I convert a byte array to an object ?

    I want to convert my object to byte array and then next to an object and run a method..The codes are below:

    Code:
    public class test_serialisation implements Serializable{
    
    	/**
    	 * 
    	 */
    	private static final long serialVersionUID = 1L;
    
    
    	public static void main(String[] args) {
    		// TODO Auto-generated method stub
    		ObjectOutputStream ob;
    		FileOutputStream f;
    ...
    See more | Go to post
    Last edited by Nepomuk; Oct 13 '10, 10:06 AM.

  • fractalengine
    started a topic What type of image is this?
    in .NET

    What type of image is this?

    I have been trying to reverse engineer a small hardware scanning device. The vendor has a DLL with a function called "GetImageDa ta" that I've been executing in VB.NET

    It is defined as below:

    Code:
    GetImageData(imageData_out as String, pWitdh as Uinteger, pHeight as Uinteger) as Boolean

    Right after calling the function I execute the following:
    Code:
    Text.ASCIIEncoding.Default.GetBytes(imag
    ...
    See more | Go to post

  • Why pack_into doesn't write correctly some bytes?

    When I try to write a specific byte (letter 'p') in a writable buffer using pack_into the result is a corrupted data:

    Code:
    >>> from ctypes import create_string_buffer
    >>> from struct import pack_into
    >>> test = create_string_buffer(1)
    >>> pack_into("B", test, 0, 48)
    >>> print repr(test.raw)
    '0'
    The answer should be '\x30'....
    See more | Go to post

  • PatriDa
    started a topic Reading from a binary file
    in C

    Reading from a binary file

    I need to read form a binary file, which stores data, an array of bytes, but without interpreting them (I mean: I cannot read them as int, or double....). I need them just as bytes. Later on, I will be able to interpret them as corresponds, because I will have information about the data type, so I can say "read them as int or as double".

    Can anyone help me, and explain me which is the best way to read them? I have thought to...
    See more | Go to post

  • kamalp5
    started a topic Bit manipultion

    Bit manipultion

    Hi, Im new to C# and have been assigned a project that involves creating part of an Mpeg2 Packet in C#.
    The problem I have is when it comes to bit manipulation and or byte manipulation in order to create the packets. I tried using bitarrays in order to create the packets and am running into problems, especially when I have to convert integer values and put them into specific locations of a given bit array. Also the bit array follows in little...
    See more | Go to post
Working...