Questions tagged as 'binary'

1
answer

save to file a backend return

My backend controller returns a file of type xlsx to my front, this is the method that returns: public FileResult ListarLivrosExcel() { // Gerando minha planilha e recebendo-a using (ExcelPackage arquivoExcel = new BmpoDTO...
asked by 20.02.2017 / 11:37
0
answers

Write / Read large files

I'm having a bit of trouble in an academic project where I have to generate a certain number of records to have an X-sized file. Eg 20gb of a .bin for so many records. My problem is how to do this as soon as a file like this pops up th...
asked by 29.08.2016 / 16:42
1
answer

How to convert binary files to String securely?

Operating System: Windows 10; Ruby Version: 2.2.1; Server Application: Apache 2 (mod_cgi); I should create a script that reads a file, converts it to text, and after a possible processing, send the result to the user. The current proc...
asked by 25.08.2015 / 03:37
1
answer

How to interpret binary content, .dat?

I need to interpret .dat files, for example. I suppose this is the content of it: ³Å¸ÎÔ| , being equivalent to "Davis" as a text. In JavaScript, using XMLHttpRequest to a .dat file should respond with the text "Davis", bu...
asked by 07.03.2016 / 00:47
2
answers

Working with binary data

I have a function in C that receives two bytes one with the highest significant value (msb) and one with a smaller value (lsb) and then converts them to decimal. int get_pea(char *buffer) { char lsb[8], msb[8], pea[16]; unsigned int i;...
asked by 04.04.2018 / 02:07
2
answers

Receive txt and generate image from text

And guys! I have a problem that I can not solve in any way. I've tried a lot and I've not gotten anywhere. In the company where we work we use proprietary language, which by the way I hate. When I make a request for an image via $.ajax()...
asked by 05.12.2016 / 22:05
0
answers

Postgres does not accept commands. "Invalid binary" error

Good afternoon, folks. I am installing Postgres and when trying to create the database through the command line interface, postgres gives me the following message incaseheisnotacceptinganycommand.InprintIgavethefollowingcommand:createdb-ESQL_AS...
asked by 10.12.2018 / 22:54
2
answers

Decimal to binary conversion in C language

The code below, from the original ( link ) "prints" a decimal number between 0 and 255 in binary. #include <stdio.h> #include <stdlib.h> int main() { int n; // Número de entrada int r; // Resultado do deslocamento int i; // C...
asked by 28.06.2017 / 05:03
0
answers

How do I reverse the character order of a file using Float - Mid-Big Endian (BADC)?

Good morning. Is there a hex editor that uses the Float - Mid-Big Endian (BADC) method? I want to reverse the order of the characters in a file. Example: 21 42 14 26 reverse the order to 42 21 26 14.     
asked by 05.06.2018 / 17:55
1
answer

Function NS_LOG - NS3 (Network Simulator): What does the "operator" mean in practice? [duplicate]

I'm working with the ns3 program, and trying to understand the code I have at hand, I came across this line, and would like to know what this sequence of "< means (I am not referring to the variables, but to the command "< <") I re...
asked by 12.12.2017 / 20:39