We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my code below, I upload a file to ipfs, then I want to get the file context, but I get nothing.
public partial class Form1 : Form { IpfsEngine ipfs;
string id; public Form1() { InitializeComponent(); ipfs = new IpfsEngine(new SecureString()); } private async void UploadData() { var options = new AddFileOptions { OnlyHash = true }; var fsn = await ipfs.FileSystem.AddFileAsync("d://temp/1.txt", options); //var text = await ipfs.FileSystem.ReadAllTextAsync(fsn.Id.ToString()); MessageBox.Show((string)fsn.Id); id = fsn.Id; } private async void GetData() { //Qmf412jQZiuVUtdgnB36FXFX7xg5V6KEbSJ4dpQuhkLyfD string filename = id; var text = await ipfs.FileSystem.ReadAllTextAsync(filename); MessageBox.Show(text); } private void button1_Click(object sender, EventArgs e) { UploadData(); } private void button2_Click(object sender, EventArgs e) { GetData(); } }
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
my code below, I upload a file to ipfs, then I want to get the file context, but I get nothing.
public partial class Form1 : Form
{
IpfsEngine ipfs;
}
The text was updated successfully, but these errors were encountered: