コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2510 ビュー

I have a button where I can attach a csv file and load a series of data contained in this file. However, I would like that once the file is read, the file is stored in another variable of the Binary type so that it can be viewed later. How could I do this? My code to read the csv file is the following:

csv_data = base64.b64decode(self.purchase_order_file)
data_file = io.StringIO(csv_data.decode("utf-8"))
data_file.seek(0)
file_reader = []
csv_reader = csv.reader(data_file, delimiter=',')
file_reader.extend(csv_reader)

アバター
破棄
最善の回答

Hi, you want to save your file in ir_attachment after read ?


Gus

アバター
破棄
著作者

Yes, how can i do this after mi code?

関連投稿 返信 ビュー 活動
1
3月 24
2166
1
11月 23
4152
3
1月 25
3991
2
5月 24
2450
2
5月 24
2351