일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- Contour
- java
- APP
- Android
- UNO
- Encapusulation
- wpf
- aduino
- digitalRead
- parameter
- Read
- file access
- Class
- memory
- preprocessing
- inheritance
- c++
- SERIAL
- atmega328
- 3D
- Barcode
- Unity
- Pointer
- compare
- flutter
- mfc
- length
- sensor
- stream
- public
- Today
- Total
목록Write (6)
폴크(FOLC)

# Local 폴더를 Zip 파일을 복원 > ziplib 라이브러리 이용 ( www.info-zip.org ) > BSD license # 소스 코드 bool CFileMakeZip::FileDeComp(CString src, CString dst) { // 연결 HZIP hz = OpenZip(src, 0); if (hz == 0) { return false; } // 해체 ZRESULT zr = UnzipItem(hz, 0, dst); if (zr != ZR_OK) { return false; } // 닫기 zr = CloseZip(hz); if (zr != ZR_OK) { return false; } return true; }

# Local 폴더를 Zip 파일로 생성 > ziplib 라이브러리 이용 ( www.info-zip.org ) > BSD license # 소스 코드 bool CFileMakeZip::FileComp(CString src, CString dst) { // 생성 HZIP hz = CreateZip(dst, 0); if (hz == NULL) { AfxMessageBox(_T("Error: Failed to Create Zip")); } // 추가 - 압축 ZRESULT zr = ZipAdd(hz, src, src); if (zr != ZR_OK) { zr = CloseZip(hz); return false; } // 닫기 zr = CloseZip(hz); if (zr != ZR_OK) { return fa..

# Local 폴더를 Zip 파일을 복원 > SharpZipLib 라이브러리 이용 # Nuget 에서 SharpZipLib 설치 # 소스 코드 using System.IO; using ICSharpCode.SharpZipLib.Zip; public void UnZipFileWithDecompress(string src_path, string dst_path) { DirectoryInfo dst_dir_info = new DirectoryInfo(dst_path); if (dst_dir_info.Exists == false) { dst_dir_info.Create(); } FileStream src_file_stream = new FileStream(src_path, FileMode.Open); ZipIn..

# Local 폴더를 Zip 파일로 생성 > SharpZipLib 라이브러리 이용 # Nuget 에서 SharpZipLib 설치 # 소스 코드 using System.IO; using ICSharpCode.SharpZipLib.Zip; public void MakeZipFileWithCompress(string src_path, string dst_path) { DirectoryInfo src_dir_info = new DirectoryInfo(src_path); if (src_dir_info.Exists == false) return; FileStream dst_file_stream = new FileStream(dst_path, FileMode.Create); ZipOutputStream zip_st..

# FTP : File Transfer Protocol은 TCP/IP 프로토콜을 가지고 있어서 서버(HOST)와 모듈(CLIENT) 사이의 파일 송/수신 > TCP/IP 프로토콜 테이블의 응용 계층 > 운영 체제가 그래픽 사용자 인터페이스를 갖추기 이전에 개발된 명령 줄 프로그램 > 대부분의 윈도우, 유닉스, 리눅스 운영 체제에 기본 포함되어 있다. # 소스 코드 public bool FileDownload(string src_path, string dst_path, string user_id, string user_pw) { try { Uri src_file_uri = new Uri(src_path); FtpWebRequest ftpWebReq = WebRequest.Create(src_file_uri..

# FTP : File Transfer Protocol은 TCP/IP 프로토콜을 가지고 있어서 서버(HOST)와 모듈(CLIENT) 사이의 파일 송/수신 > TCP/IP 프로토콜 테이블의 응용 계층 > 운영 체제가 그래픽 사용자 인터페이스를 갖추기 이전에 개발된 명령 줄 프로그램 > 대부분의 윈도우, 유닉스, 리눅스 운영 체제에 기본 포함되어 있다. # 소스 코드 public bool FileUpload(string src_path, string dst_path, string user_id, string user_pw) { try { Uri dst_file_uri = new Uri(dst_path); FtpWebRequest ftpWebReq = WebRequest.Create(dst_file_uri) ..