취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Read all bytes from any file

해결 완료!
솔루션으로 이동

Hey! I would like to read any type of file and read them as binary (Obtain an 1d array of U8 or an 2d array 8bits x sizearray) and when I have manipulated it, rebuild the original file.

0 포인트
1/11 메시지
4,651 조회수
솔루션
승인자 Pepe727

Hi Pepe,

 

I would like to read any type of file and read them as binary (Obtain an 1d array of U8 or an 2d array 8bits x sizearray)

Use ReadBinaryFile function…

 

when I have manipulated it, rebuild the original file.

Why do you want to manipulate anything, when you need the original file afterwards???

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
2/11 메시지
4,646 조회수

Well such a vague question demands an equally vague answer.

 erre.PNG

 

========================
=== Engineer Ambiguously ===
========================
0 포인트
3/11 메시지
4,645 조회수

I wanna encrypt any file, for example a vi or a video or a simple .txt, so, when this file encrypted is decrypted...

 

The function "read binary file" is able to read any type of file?

0 포인트
4/11 메시지
4,628 조회수

since every file is just a bunch of zeros and ones ... yes


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
5/11 메시지
4,620 조회수

Does anyone have an example?

0 포인트
6/11 메시지
4,615 조회수

RTSLVU had an example for the encoding,

to reverse that, you just have to do the same with F^-1 for the decoding.


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 포인트
7/11 메시지
4,605 조회수

@Pepe727 wrote:

Does anyone have an example?


The "vague answer" above is actually a good starting point!  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
8/11 메시지
4,603 조회수

@Pepe727 wrote:

I wanna encrypt any file, for example a vi or a video or a simple .txt, so, when this file encrypted is decrypted...

 

The function "read binary file" is able to read any type of file?


See my suggestion here https://forums.ni.com/t5/LabVIEW/Can-you-give-me-some-suggestions-for-encryption-decryption/m-p/2529...

========================
=== Engineer Ambiguously ===
========================
9/11 메시지
4,602 조회수

if you want to have "secure" encryption, use an external library/program that does that for you, like openssl, and not build it yourself.

you could run commandline call through the system-exec-vi.

https://zone.ni.com/reference/en-XX/help/371361J-01/glang/system_exec/


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 포인트
10/11 메시지
4,591 조회수