Search Result

Collapse
18 results in 0.0014 seconds.
Keywords
Members
Tags
binary
  •  

  • gavini
    started a topic Save images in SQL DB via MVC2

    Save images in SQL DB via MVC2

    When I run my website it shows the following error:
    "The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters."

    My View code:
    Code:
    <%@ Page Title="register" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<blog.models.users>"
    ...
    See more | Go to post
    Last edited by Frinavale; Mar 19 '12, 01:28 PM. Reason: Fixed code tag and added more formatting.

  • sbjv
    started a topic C# reading certain digits from binary data

    C# reading certain digits from binary data

    Hi ,
    I have one python script which i am trying to convert and stuck in one place and unable to proceed. any help would be appreciated

    Python script:----------------
    import hashlib
    meid = raw_input("Ente r an MEID: ").upper()
    s = hashlib.sha1(me id.decode('hex' ))
    #decode the hex MEID (convert it to binary!)
    pesn = "80" + s.hexdigest()[-6:].upper()...
    See more | Go to post

  • Leonne
    started a topic fstream.read() Not Reading Anything At All.
    in C

    fstream.read() Not Reading Anything At All.

    Hi guys.
    I'm trying to read the first line of an MP3 file (I edited this mp3 file to contain the text "I'm an MP3" right at the beginning of the file).

    This is what I'm trying to do:

    Code:
    #include <iostream>
    #include <string>
    #include <fstream>
    using namespace std;
    
    int main()
    {
        fstream mp3;
        mp3.open("05 Imagine.mp3",
    ...
    See more | Go to post

  • pb2000
    started a topic string representation of binary to integer

    string representation of binary to integer

    Hello,

    I struggle with really odd matter:
    There is sth like '01010101' which is needed as an integer on function output. Is it possible to convert it (string representation of binary to integer)?
    I tried ::byte and get_bytes(), without any success.

    Can You help me? Thanks a lot!
    pb2000
    See more | Go to post

  • Laura Wilkinson
    started a topic Binary Tree Help!!
    in C

    Binary Tree Help!!

    Hi All,

    I am creating a license plate recognition system for my coursework and I need to incorporate a binary tree. The examples that I have seen have been quite general and I am unsure of how my code will work with it.

    The code below is what I have produced;

    Code:
    void displayC(CarC* cPtr)
    {
    	cout << "Car Registration: " <<  cPtr->carRegistration <<
    ...
    See more | Go to post

  • Reading a Binary file in Random Access Mode

    Hi.
    Ok - I'm a VB6 programmer from way back and I am starting to use C# for a particular project. To add spice to the issue this is the MicroFramework because the end application will be running on a FEZ Mini.

    Now - I have seen many articles where one can write a fixed length record file from VB6 and read it in with C#. But for this project it is not going to be a sequential read, I will need to jump from record to record....
    See more | Go to post

  • slao
    started a topic Converting a Hex values to date in C#

    Converting a Hex values to date in C#

    I have a program that has dates stored in binary and displayed on the program as YY/MM/DD format. I use XVI32(http://www.chmaas.hand shake.de/delphi/freeware/xvi32/xvi32.htm) to look at the binary file in Hexadecimal and got the following results

    For example,

    Hex value: 31 07 01 00
    Date value: 85/06/18 (in YY/MM/DD format)

    Another example,

    Hex value: EF 1B 01 00
    Date value:...
    See more | Go to post

  • Fuugie
    started a topic How do you do binary addition on python?

    How do you do binary addition on python?

    I'm having trouble trying to add these together correctly. I have kind of ran into a brick wall. I have gotten it converted and that's it as of now.

    My Code:
    Code:
    class BinaryNumber:
        '''A Binary Number Class'''
        #pass
        def __init__(self, bitString = ''):
            '''Constructor'''
            #pass
            self._bits = bitString
    
        def __str__(self):
            '''string representation'''
    ...
    See more | Go to post

  • EnlightenedOne
    started a topic Marshalling data to a char array
    in C

    Marshalling data to a char array

    Hey there I have a data structure with a set size of 40 I want to marshall the data from an object into an array of characters for simplistic transmission of data. I am aware of serialization but only familiar with it in higher languages, I am stuck using c.

    My question is this. How do I point to an individual character value of the unmarshalled object in order to marshall it into a character array I can throw down the socket pipe?...
    See more | Go to post

  • How do I determine the number of round numbers (to be explained below)?

    NOTE: I am using Excel VBA.

    Please help me program the following problem:

    A positive integer n is said to be a ROUND NUMBER if the binary representation of n has as many or more zeros as ones. For example:

    The integer 9, written in binary form, is 1001. 1001 has two zeros and two ones; thus 9 is a ROUND NUMBER.

    The integer 26, written in binary form, is 11010. 11010 has two zeros and three ones;...
    See more | Go to post

  • BinaryReader opposite functions for BinaryWriter

    Hello!

    I am trying to make a converter in C#. The goal is making a working converter that can convert a binary mesh file into wavefront .obj, and vice versa (3d models). Converting the binary file to obj is already working, now I'm working on the reverse. The problem is, when I use the BinaryWriter to do the opposite actions from the BinaryReader used in the first converter.

    To undo the BinaryReader.Re adSingle() method...
    See more | Go to post

  • ankitabhatia
    started a topic how to convert a bmp image to a binary file?
    in C

    how to convert a bmp image to a binary file?

    i have to convert a black and white bmp image into a binary file..
    i have to use the binary file to perform rle(run length encoding) compression techinque...
    i have to do it in c...
    thnx a lot:)
    See more | Go to post

  • embza
    started a topic Inserting binary data types

    Inserting binary data types

    currently i have developed a C# application that makes ready structured variables holding binary values to be written into oracle database. The values to be inserted are different. some of them are as small as 1bit, 2bits, 3bit ....8bit, 2bytes,
    and the others are as large as 8,000 bytes and some may be 4Gigs larger.
    what data types should I use to store these values in my oracle10g database tables. Considering all the values are to...
    See more | Go to post
    Last edited by debasisdas; Dec 2 '09, 04:56 AM. Reason: snipped mail id.

  • thesinik
    started a topic Search function not working.

    Search function not working.

    Code:
    import random
    import math
    
    t = tuple()
    
    def linsearch(key, l):
        count = 0
        index = 0
        t = tuple()
        for i in l:
            count += 1
            if key == i:
                t = (index, count)
                return t
            index += 1
        
    
    def binsearch(key, l):
        count = 0
        low = 0
        t = tuple()
        high = len(l) -
    ...
    See more | Go to post
    Last edited by thesinik; Nov 13 '09, 06:04 PM. Reason: fixed indents

  • ishould
    started a topic Can you use seekp without ios::binary?
    in C

    Can you use seekp without ios::binary?

    My actual problem is much larger but figuring out how to do this example will help me. I want to overwrite data that already exists in a text file but I can't seem to do this.

    ex.
    [file.txt]
    I have five fingers.

    My current code:

    Code:
    ofstream File;
    File.open("file.txt", ios::out);
    File.seekp(8, ios::beg);
    File << "four";
    File.close();
    ...
    See more | Go to post
Working...